package com.ml.shop.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 远程调用的步骤
 *      1，引入openFeign
 *      2, 编写接口，告诉springcloud这个接口是远程调用的接口
 *      3, 接口中的每一个方法都是调用远程服务的请求
 *          3，1声明feign客户端@FeignClient
 *      4，开启远程调用功能
 */
@EnableFeignClients("com.ml.shop.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class, args);
    }

}
